console.log('background.js', chrome.runtime.id);

chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
  console.log(message);

  if(message.action == 'getLocalStorage'){
    sendResponse(localStorage.getItem(message.key));
  }
});